/**
 * window open 弹出新窗口
 * @param {} url
 * @param {} name
 * @param {} width
 * @param {} height
 */
function popwindow(url, name, width, height) {

	var wth = !width ? 500 : width;
	var hgt = !height ? 400 : height;
	
	var left = (screen.width - 600) / 2;
	var top = (screen.height - 600) / 2;

	var popwin = window.open(url, name,
			'scrollbars=yes, menubar=no, toolbar=no, width=' + wth + ', height='
					+ hgt + ',left= '+left+',top='+top+', resizable=yes, location=no');
	// window.scrollTo(100,100);
	//popwin.moveTo((screen.width - 600) / 2, (screen.height - 600) / 2);
}